﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.SystemManager.ApplyGather;
using SystemCenterSoa.IRepository.SystemManager.ApplyGather;
using SystemCenterSoa.PoModel.SystemManager.ApplyGather;

namespace SystemCenterSoa.Service.SystemManager.ApplyGather
{
    public class WorkOvertimeLeaveApplyService
    {
        private IWorkOvertimeLeaveApplyRepository _workOvertimeLeaveApplyRepository;

        public WorkOvertimeLeaveApplyService(IWorkOvertimeLeaveApplyRepository workOvertimeLeaveApplyRepository)
        {
            _workOvertimeLeaveApplyRepository = workOvertimeLeaveApplyRepository;
        }
        public bool GetWorkOvertimeLeaveApplyAdd(WorkOvertimeLeaveApplyPo workOvertimeLeaveApply)
        {
            return _workOvertimeLeaveApplyRepository.GetWorkOvertimeLeaveApplyAdd(workOvertimeLeaveApply);
        }
        public List<WorkOvertimeLeaveApplyDto> GetWorkOvertimeLeaveApplyList(int deId, string nian, string yue, int pageIndex, int pageSize)
        {
            return _workOvertimeLeaveApplyRepository.GetWorkOvertimeLeaveApplyList(deId, nian, yue, pageIndex, pageSize);
        }
        public WorkOvertimeLeaveApplyPo GetWorkOvertimeLeaveApplyFan(int id)
        {
            return _workOvertimeLeaveApplyRepository.GetWorkOvertimeLeaveApplyFan(id);
        }
        public bool GetWorkOvertimeLeaveApplyUpdate(WorkOvertimeLeaveApplyPo workOvertimeLeaveApply)
        {
            return _workOvertimeLeaveApplyRepository.GetWorkOvertimeLeaveApplyUpdate(workOvertimeLeaveApply);
        }
        public bool GetWorkOvertimeLeaveApplyDel(string ids)
        {
            return _workOvertimeLeaveApplyRepository.GetWorkOvertimeLeaveApplyDel(ids);
        }
    }
}
